//
//  CSAttPopView.m
//  CreateWithSuper
//
//  Created by chenjunbo on 2024/8/1.
//  Copyright © 2024 CS. All rights reserved.
//

#import "CSAttPopView.h"
#import "SceneDelegate.h"

@interface CSAttPopView ()

@end

@implementation CSAttPopView

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (IBAction)ok:(id)sender {
    UIWindowScene *windowScene = (UIWindowScene *)[[[UIApplication sharedApplication] connectedScenes] allObjects].firstObject;
    SceneDelegate *scene = (SceneDelegate *)windowScene.delegate;
    UIWindow *window = scene.window;
    [UIView animateWithDuration:1.0f animations:^{
        window.alpha = 0.1;
    }completion:^(BOOL finished) {
        exit(0);
    }];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
